package com.itheima.health.service;

import com.itheima.health.entity.PageResult;
import com.itheima.health.entity.QueryPageBean;
import com.itheima.health.pojo.Setmeal;

import java.util.List;

/**
 * @Author: liangWeiQUQ
 * @Description: TODO
 * @DateTime: 2021/2/27 17:09
 **/
public interface SetmealService {
    /**
     * @Author: liangWeiQUQ 
     * @Date: 17:15 2021/2/27
     * @Parms 
     * @ReturnType: 
     * @Description: 套餐分页查询
    */
    PageResult findPage(QueryPageBean queryPageBean);


    /**
     * @Author: liangWeiQUQ
     * @Date: 22:48 2021/2/27
     * @Parms
     * @ReturnType:
     * @Description: 套餐管理-添加套餐
     * @param checkgroupIds
     * @param setmeal
     */
    void add(Integer[] checkgroupIds, Setmeal setmeal);
    /**
     * @Author: liangWeiQUQ
     * @Date: 9:52 2021/3/1
     * @Parms
     * @ReturnType:
     * @Description: 根据filename查询一共有几条记录
    */
    int conut(String fileName);
    /**
     * @Author: 传闻中的梁大侠
     * @Date: 10:09 2021/3/4
     * @Parms []
     * @ReturnType: com.itheima.health.entity.Result
     * @Description: 查询所有的套餐服务列表
     */
    List<Setmeal> findAll();
    /**
             * @Author: 传闻中的梁大侠
             * @Date: 10:19 2021/3/4
             * @Parms [id]
             * @ReturnType: com.itheima.health.pojo.Setmeal
             * @Description: 根据id查询套餐的信息
            */

    Setmeal findById(Integer id);
}
